import Vue from "vue";
import VueRouter from "vue-router";
import Home from "@/views/home/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/home",
    name: "Home",
    component: Home,
    children: [
      // 流量切分
      {
        path: "/home/flowSegmentation",
        name: "flowSegmentation",
        component: Home,
      },
      {
        path: "/home/home-a",
        name: "home-a",
        component: Home,
      },
      {
        path: "/home/home-b",
        name: "home-b",
        component: Home,
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
